You Can't Use the New Operator with this Class Error

You tried to create an instance from an abstract class. You can only use the New operator to create a new instance of a control already in a window, a window added to the project with the Project .

Add . Window command or the Add Window button, or an existing menu item. The existing object acts as a template for the new instance.

You also cannot create an instance of a class that is used only as the base class for other classes, such as RectControl or SocketCore.


Example

Don't do this:

Instead, use the New operator with an instance of the Window class created with the Project . Add . Window command or the Add Window button in the Project Editor.

Dim w as FindWindow
w= New FindWindow

See Also

New operator.